home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 4.8 KB | 211 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Liberty1:ODF Dev:Graphics1:Sources:SOMPart.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_DevUniv_defined
- #define SOM_Module_DevUniv_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODPersistentObject;
- class ODStorageUnit;
- class ODPart;
- class ODCanvas;
- class ODDragItemIterator;
- class ODEmbeddedFramesIterator;
- class ODLink;
- class ODLinkSource;
- class ODObjectSpec;
- class ODShape;
- class ODStorageUnitView;
- class ODTypeList;
- class ODTransform;
- class ODSession;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_DevUniv_defined */
-
- #ifndef SOM_DevUniv_Graphics_xh
- #define SOM_DevUniv_Graphics_xh
-
- class DevUniv_Graphics;
-
- #define DevUniv_Graphics_MajorVersion 0
- #define DevUniv_Graphics_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
- #if FW_LIB_EXPORT_PRAGMAS
- #pragma lib_export on
- #endif
- class FW_CPart;
- #if FW_LIB_EXPORT_PRAGMAS
- #pragma lib_export off
- #endif
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODPart_xh
- #include <Part.xh>
- #endif
-
- #ifndef DevUniv_Graphics_API
- #define DevUniv_Graphics_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define DevUniv_GraphicsCClassData DevUniv_GraphicsClassData
- #define DevUniv_GraphicsNewClass(major,minor) somNewVersionedClassReference(DevUniv_Graphics,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define DevUniv_GraphicsMetaClass SOMClass
-
-
- /* The API to the DevUniv_Graphics class object, and the methods it introduces. */
- SOMEXTERN struct DevUniv_GraphicsClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken GetFrameworkPart;
- somMToken NewFrameworkPart;
- somMToken majorversion;
- } SOMDLINK DevUniv_GraphicsClassData;
-
- #if !defined(DevUniv_Graphics_Class_Source) && !defined(SOM_Module_sompart_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list DevUniv_GraphicsClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for DevUniv_Graphics Method Procedures
- */
- SOMEXTERN {
- typedef FW_CPart* (* SOMLINK somTD_DevUniv_Graphics_GetFrameworkPart)(DevUniv_Graphics *somSelf, Environment *ev);
- typedef FW_CPart* (* SOMLINK somTD_DevUniv_Graphics_NewFrameworkPart)(DevUniv_Graphics *somSelf, Environment *ev,
- ODPart* partWrapper);
- }
-
- #endif /* DevUniv_Graphics_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for DevUniv_Graphics
- */
- class DevUniv_Graphics : public ODPart
- {
- public:
-
- // DevUniv_Graphics::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for DevUniv_Graphics, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(DevUniv_Graphics);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(DevUniv_Graphics);
- #endif
- }
-
- // DevUniv_Graphics::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: GetFrameworkPart */
- FW_CPart* GetFrameworkPart(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- FW_CPart* __somResult =
- SOM_ResolveD(this,DevUniv_Graphics,DevUniv_Graphics,GetFrameworkPart)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,DevUniv_Graphics,DevUniv_Graphics,GetFrameworkPart)
- (this,ev);
- #endif
- }
-
- /* method: NewFrameworkPart */
- FW_CPart* NewFrameworkPart(Environment *ev,
- ODPart* partWrapper)
- {
- #ifdef SOMCHKEXCEPT
- FW_CPart* __somResult =
- SOM_ResolveD(this,DevUniv_Graphics,DevUniv_Graphics,NewFrameworkPart)
- (this,ev,partWrapper);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,DevUniv_Graphics,DevUniv_Graphics,NewFrameworkPart)
- (this,ev,partWrapper);
- #endif
- }
-
- }; /* DevUniv_Graphics */
-
-
-
- #endif /* SOM_DevUniv_Graphics_xh */
-